<?
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";

if($_SESSION["Login"][1]<>$SystemConest[2])
{
	die("你不是超级管理员,没有权限设置");
}

$CurrMenuId=$_REQUEST["CurrMenuId"];
$MenuId=$_REQUEST["MenuId"];
if(strlen($CurrMenuId)<1)
$CurrMenuId=0;
if(strlen($MenuId)<1)
$MenuId=0;
$Menu1Name=$_REQUEST["Menu1Name"];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改栏目</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?

$myc=new YYBDB();
echo CurrPosition($CurrMenuId,$myc)." > 栏目修改";
	$sqlrs="Select * From ".$SystemConest[7].$SystemTablename[2]." Where ".$SystemTablename[2]."0=".$CurrMenuId;
	$rsc=$myc->db_select_query($sqlrs);
	$rs=$myc->db_fetch_array($rsc);
	
	
?>

</p>
<form id="form1" name="form1" method="post" action="Update_Save.php?CurrMenuId=<? echo $CurrMenuId;?>&MenuId=<? echo $_REQUEST["MenuId"];?>">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="95%" border="0" align="center">

    <tr>
      <td width="35%"><div align="right">栏目名称：</div></td>
      <td width="65%"><label>
        <input name="SysMenu1" type="text" value="<? echo $rs[1];?>" size="30" />
      </label></td>
    </tr>
    <tr>
      <td><div align="right">栏目功能：</div></td>
      <td>
	 
	  <? echo  SystemList($rs[2],"SysMenu2"); ?></td>
    </tr>
     <tr>
      <td align="right">链接地址：</td>
      <td> <input name="urllinks" type="text" size="30" value="<? echo $rs[12];?>"/></td>
    </tr>
    <tr>
      <td><div align="right">排序：</div></td>
      <td><label>
        <input name="SysMenu3" type="text" value="<? echo $rs[4];?>" size="10" />
      </label></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><label>
        <input type="submit" name="Submit" value="保存" />
        <input type="button" name="Submit2" value="取消" onClick="window.history.back();"/>
      </label></td>
    </tr>
  </table>
</form>
<div style="margin-left:100px;">1、当链接地址有值时。左边的栏目的链接为此值。后台路径的文件夹名请用“{houtaipath}”代替</div>
</body>
</html>

